package com.ruoyi.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * api服务管理对象 api_manage
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public class ApiManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务ID */
    private Long apiId;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String apiName;

    /** 服务标签 */
    @Excel(name = "服务标签")
    private String apiTag;

    /** 服务地址 */
    @Excel(name = "服务地址")
    private String apiUrl;

    /** 服务描述 */
    @Excel(name = "服务描述")
    private String apiDescription;

    /** 服务类型（病害识别，虫害识别，长势识别） */
    @Excel(name = "服务类型", readConverterExp = "病=害识别，虫害识别，长势识别")
    private String apiType;

    /** 使用状态（0正常 1停用） */
    @Excel(name = "使用状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setApiId(Long apiId) 
    {
        this.apiId = apiId;
    }

    public Long getApiId() 
    {
        return apiId;
    }

    public void setApiName(String apiName) 
    {
        this.apiName = apiName;
    }

    public String getApiName() 
    {
        return apiName;
    }

    public void setApiTag(String apiTag) 
    {
        this.apiTag = apiTag;
    }

    public String getApiTag() 
    {
        return apiTag;
    }

    public void setApiUrl(String apiUrl) 
    {
        this.apiUrl = apiUrl;
    }

    public String getApiUrl() 
    {
        return apiUrl;
    }

    public void setApiDescription(String apiDescription) 
    {
        this.apiDescription = apiDescription;
    }

    public String getApiDescription() 
    {
        return apiDescription;
    }

    public void setApiType(String apiType) 
    {
        this.apiType = apiType;
    }

    public String getApiType() 
    {
        return apiType;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apiId", getApiId())
            .append("apiName", getApiName())
            .append("apiTag", getApiTag())
            .append("apiUrl", getApiUrl())
            .append("apiDescription", getApiDescription())
            .append("apiType", getApiType())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
